package sample.testBindView
{

	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import flash.sampler.NewObjectSample;
	import flash.text.TextField;

	import org.abc.uiCore.AbcBindView;
	import org.abc.uiCore.AbcBtn;
	import org.abc.uiCore.AbcDynamicBtn;
	import org.abc.uiCore.AbcPic;
	import org.abc.uiCore.AbcProgressBar;
	import org.abc.uiCore.AbcTextField;
	import org.abc.uiCore.TimeLineView;
	import org.abc.uiCore.vo.PicVo;

	/**
	 * @describe  	...
	 * @author  	Mr.zheng
	 * @website 	http://blog.sina.com.cn/zihua2007
	 * @time		2011-8-11 13:09
	 */
	public class Panel_CPS extends AbcBindView
	{
		public var txt_title_LEA:AbcTextField;
		public var btn_close_LEA:AbcBtn;
		public var circle_LEA:MovieClip;
		public var anm_action_LEA:TimeLineView;
		public var small_CPS:Small_CPS=new Small_CPS;
		public var dyb_LEA:AbcDynamicBtn;
		public var pic_CPS:AbcPic;
		public var txt_LEA:AbcTextField;
		public var pgb_CPS:AbcProgressBar;

		public function Panel_CPS()
		{
			this.bindView(new panel_CPS);

			pic_CPS.update(new PicVo("../asset/pic.jpg", 1));

			pgb_CPS.setProgress(12234, 25000);

			txt_LEA.text="郑子华todo";

			btn_close_LEA.addEventListener(MouseEvent.CLICK, onClick);

			dyb_LEA.addEventListener(MouseEvent.CLICK, onDybClick);
		}

		private function onClick(e:MouseEvent):void
		{
			txt_title_LEA.text="close btn has clicked";
			circle_LEA.x-=10;
			anm_action_LEA.play();
		}

		protected function onDybClick(e:MouseEvent):void
		{
			trace("dyb click");
		}
	/* public function */

	/* override function */

	/* private function */
	}

}
